package cn.cool.springframework.beans.factory.config;

import cn.cool.springframework.beans.PropertyValues;
import lombok.Data;

@Data
public class BeanDefinition {
    // 存储bean的全类名，这样就可以将实例化和管理bean的操作交给ioc容器控制
    private Class beanClass;

    private PropertyValues propertyValues;

    public BeanDefinition(Class beanClass) {
        this.beanClass = beanClass;
        this.propertyValues = new PropertyValues();
    }

    public BeanDefinition(Class beanClass, PropertyValues propertyValues) {
        this.beanClass = beanClass;
        this.propertyValues = propertyValues;
    }
}